package com.cby.ssm.service.impl;

import com.cby.ssm.dao.RoleDao;
import com.cby.ssm.entity.RoleEntity;
import com.cby.ssm.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 13296 on 2017/7/20.
 */
@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    RoleDao rdao;
    @Override
    public List<RoleEntity> searchAllRole() throws Exception {
        List<RoleEntity> list = rdao.selectAllRole();
        return list;
    }

    @Override
    public RoleEntity searchRole(String roleId) throws Exception {
        return null;
    }

    @Override
    public List<RoleEntity> searchRoles(String key) throws Exception {
        return null;
    }

    @Override
    public RoleEntity editRole(RoleEntity r) throws Exception {
        return null;
    }

    @Override
    public boolean deleteRole(String deleteId, String notDeleteId) throws Exception {
        return false;
    }

    @Override
    public void addRole(String roleName) throws Exception {

    }
}
